package org.tim.common.msg;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@Accessors(chain = true)
@Schema(description = "消息载体")
public class TimMessage {
    @Schema(description = "消息 ID")
    protected String id;

    @Schema(description = "消息发送者")
    protected String fromUserId;

    @Schema(description = "消息接收者")
    protected String toUserId;

    @Schema(description = "消息类型")
    protected MsgType msgType;

    @Schema(description = "聊天类型")
    protected ChatType chatType;

    @Schema(description = "聊天内容")
    protected Object content;

    @Schema(description = "发送消息时间")
    protected Long date;
}
